<?php

class WebsiteSettings
{
	static function getWebsiteUrl()
	{
		$url = Prado::getApplication()->Request->getAbsoluteApplicationUrl();
		if(String::endsWith($url, 'index.php'))
			$url = substr($url, 0, strlen($url) - 9);
		if(!String::endsWith($url, '/'))
			$url = '/'.$url;
		
		return $url;
	}
}

?>